package redis.jedis ;

/**
 * reids的设置项
 * @author 80002165 @date 2017年6月22日 上午8:44:15
 */
public class RedisConfig {
    // 最大连接数
    private static int maxTotal = 600 ;
    
    //最大空闲数
    private static int maxIdle = 200 ;
    
    //最大等待毫秒数
    private static int maxWaitMillis = 1000 ;
    
    //连接超时时间单位：毫秒
    private static int timeout = 3000 ;
    
    //获取Redis尝试连接次数
    private static int retryNum = 3 ;
    
    //定时检查缓存时间
    private static int checkTime = 30000 ;
    
    //Redis监控判断状态的Key
    private static String checkStatusKey = "checkStatusKey" ; 
    
    //Redis监控判断状态Value
    private static String checkStatusValue = "checkStatusValue" ;

    public static int getMaxTotal() {
        return maxTotal ;
    }

    public static void setMaxTotal(int maxTotal) {
        RedisConfig.maxTotal = maxTotal ;
    }

    public static int getMaxIdle() {
        return maxIdle ;
    }

    public static void setMaxIdle(int maxIdle) {
        RedisConfig.maxIdle = maxIdle ;
    }

    public static int getMaxWaitMillis() {
        return maxWaitMillis ;
    }

    public static void setMaxWaitMillis(int maxWaitMillis) {
        RedisConfig.maxWaitMillis = maxWaitMillis ;
    }

    public static int getTimeout() {
        return timeout ;
    }

    public static void setTimeout(int timeout) {
        RedisConfig.timeout = timeout ;
    }

    public static int getRetryNum() {
        return retryNum ;
    }

    public static void setRetryNum(int retryNum) {
        RedisConfig.retryNum = retryNum ;
    }

    public static int getCheckTime() {
        return checkTime ;
    }

    public static void setCheckTime(int checkTime) {
        RedisConfig.checkTime = checkTime ;
    }

    public static String getCheckStatusKey() {
        return checkStatusKey ;
    }

    public static void setCheckStatusKey(String checkStatusKey) {
        RedisConfig.checkStatusKey = checkStatusKey ;
    }

    public static String getCheckStatusValue() {
        return checkStatusValue ;
    }

    public static void setCheckStatusValue(String checkStatusValue) {
        RedisConfig.checkStatusValue = checkStatusValue ;
    }
    
}
